package jdo.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Velo {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id_velo;
	
	@Persistent
	private String nom;
	@Persistent
	private String nb_bornes;
	@Persistent
	private String rue;
	@Persistent
	private String num_rue;
	@Persistent
	private String coord_x; /*X_WGS84*/
	@Persistent
	private String coord_y; /*Y_WGS84*/
	
	public Velo(String name,String nb_terminal,String num_street,String street,String coordinate_x,String coordinate_y){
		nom=name;
		nb_bornes=nb_terminal;
		rue=street;
		num_rue=num_street;
		coord_x=coordinate_x;
		coord_y=coordinate_y;
	}
	
	public Long getKey() {
		return id_velo;
	}
		
	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getNombreTerminal() {
		return nb_bornes;
	}

	public void setNombreTerminal(String nb_bornes) {
		this.nb_bornes = nb_bornes;
	}
	
	public String getRue() {
		return rue;
	}
	
	public void setRue(String rue) {
		this.rue = rue;
	}
	
	public String getNumRue() {
		return num_rue;
	}
	
	public void setNumRue(String num_rue) {
		this.num_rue = num_rue;
	}

	public String getCoordX() {
		return coord_x;
	}

	public void setCoordX(String coord_x) {
		this.coord_x = coord_x;
	}
	
	public String getCoordY() {
		return coord_y;
	}

	public void setCoordY(String coord_y) {
		this.coord_y = coord_y;
	}
	
}
